package com.celer.flex.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import java.io.Serial;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  实体类。
 *
 * @author Celer
 * @since 2025-10-15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("sys_dict")
public class Dict implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private int id;

    private String code;

    private String name;

    private String type;

    private String parentCode;

    private String remark;

    private int status;

    private int delFlag;

    @Column(onUpdateValue = "datetime()", onInsertValue = "datetime()")
    private LocalDateTime createTime;

    @Column(onUpdateValue = "datetime()", onInsertValue = "datetime()")
    private LocalDateTime updateTime;

}
